﻿using MediatR;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.Department
{
    /// <summary>
    /// 部门添加条件
    /// </summary>
    public class CreateDepartmentCommand : IRequest<Result>
    {
        /// <summary>
        /// 部门ID(序号)
        /// </summary>
        public int DepartmentId { get; set; }

        /// <summary>
        /// 状态 1-有效 2-无效
        /// </summary>
        public int DepartmentStatus { get; set; }

        /// <summary>
        /// 节点编码
        /// </summary>
        public string NodeEncoding { get; set; }

        /// <summary>
        /// 节点名称
        /// </summary>
        public string DepartmentName { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 是否删除 1-未删除 2-已删除
        /// </summary>
        public int IsDeleted { get; set; }

        /// <summary>
        /// 企业编号(外键)
        /// </summary>
        public int EnterpriseId { get; set; }
    }
}
